﻿<?php

/**
 * Specify action object. For actions column.
 */
class action
{
	/**
	 * string action name
	 */
	var $name;

	/**
	 * string action title
	 */
	var $title;

	/**
	 * string action image file name
	 */
	var $image;
	
	/**
	 * string action Glyphicon name
	 */
	var $glyphicon;

	/**
	 * Constructor
	 *
	 * @param $name string action name
	 * @param $title string action title
	 * @param $image string action image
	 */
	function action($name = '', $title = '', $image = '', $glyphicon = '')
	{
		$this->name = $name;
		$this->title = $title;
		$this->image= $image;
		$this->glyphicon = $glyphicon;
	}
}

// Build actions.
$WEB_APP['action_edit'] = new action('edit',
				text('txt_edit'), 'edit.gif', 'icon-pencil');
$WEB_APP['action_small_result'] = new action('small_result',//acsour changes
				'small_result', 'view.gif', 'icon-book');
$WEB_APP['action_delete'] = new action('delete',
				text('txt_delete'), 'del.gif', 'icon-trash');
$WEB_APP['action_password'] = new action('password',
				text('txt_change_password'), 'new_password.png','icon-asterisk');
$WEB_APP['action_translations'] = new action('translations',
				text('txt_translations'), 'view.gif','icon-resize-horizontal');
$WEB_APP['action_view_book'] = new action('view_book',
				text('txt_action_view'), 'view.gif', 'icon-book');
$WEB_APP['action_modules'] = new action('modules',
				text('txt_modules'), 'view.gif', 'icon-th-list');
$WEB_APP['action_update'] = new action('update',
				text('txt_update'), 'update.png','icon-refresh');
$WEB_APP['action_questions'] = new action('questions',
				text('txt_questions'), 'questions.png', 'icon-question-sign');
$WEB_APP['action_view_result'] = new action('view_result',
				text('txt_view'), 'questions.png','icon-search');
$WEB_APP['action_details'] = new action('details',
				text('txt_view'), 'questions.png','icon-list-alt');
$WEB_APP['action_download'] = new action('download',
				text('txt_download'), 'csv.png','icon-download');
$WEB_APP['action_print_report'] = new action('print_report',
				text('txt_print'), 'report.gif','icon-print');
$WEB_APP['action_continue'] = new action('continue_testing',
				text('txt_continue'), 'update.png','icon-repeat');
$WEB_APP['action_finish'] = new action('finish',
				text('txt_finish'), 'del.gif','icon-check');
